package xcmg.device.dao.mapper.account;


import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import xcmg.device.dao.entity.account.InvoiceDO;
import xcmg.device.service.vo.account.InvoiceVO;

import java.util.List;

@Mapper
public interface InvoiceMapper {

    int deleteByPrimaryKey(String id);

    int insert(InvoiceDO record);

    InvoiceDO selectByPrimaryKey(String id);

    InvoiceDO selectByInvoiceNo(@Param("invoiceNo") String invoiceNo, @Param("orgId") String orgId);

    int update(InvoiceDO record);

    List<InvoiceDO> list(InvoiceVO invoiceVO);

    int listCount(InvoiceVO invoiceVO);

    List<InvoiceDO> findByIds(@Param("ids") List<String> ids);
}